//
//  OtherNetworking.h
//  智云网校
//
//  Created by Damon on 2017/6/8.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FileManagerUtil.h"

typedef NS_ENUM(NSInteger, DownloadFileType) {
    DownloadFileTypeOutline = 0,        /*   讲义下载   */
    DownloadFileTypeTalkfun,            /*   欢拓云     */
    DownloadFileTypeCCPlayer,           /*   CC        */
    DownloadFileTypeSLPG                /*   申论批改    */
};

@interface OtherNetworking : NSObject

@property (nonatomic, assign) BOOL isInAppPurchase;
@property (nonatomic, copy) NSString *STRURL;
@property (nonatomic, copy) NSString *STRURLIMG;

+ (OtherNetworking *)sharedManager;

//文件下载
- (void)downloadTaskWithRequest:(NSString  *)filepath
                       progress:(void (^)(NSProgress *downloadProgress)) downloadProgressBlockDD
                       fileName:(NSString *)fileName
                           type:(DownloadFileType)type
              completionHandler:(void (^)(NSURLResponse *response, NSURL *filePath, NSError *error))completionHandlerDD;
- (void)startDownload;
- (void)stopDownload;


//查看版本号
- (void)verifyItunesAppVersionCompletion:(void (^)())completion;


//分享链接
////直播
- (NSString *)kShareUrlCourseLive:(NSString *)courseID;
////录播
- (NSString *)kShareUrlCourseRecorded:(NSString *)courseID;
////面授
- (NSString *)kShareUrlCourseFace:(NSString *)courseID;
////申论批改
- (NSString *)kShareUrlCourseSLPG:(NSString *)courseID;
////备考资料
- (NSString *)kShareUrlCourseBKZL:(NSString *)courseID;
////智能刷题、高频错题、考点练习分享
- (NSString *)kShareUrlCourseQuestion:(NSString *)courseID;
////历年真题(套卷刷题)分享
- (NSString *)kShareUrlCourseQuestionHistory:(NSString *)courseID;
//综合评估
- (NSString *)kShareUrlWholeAssessment;

//支付回调地址
////支付宝
- (NSString *)AliPayCallbackAddress;
////微信
- (NSString *)WXPayCallbackAddress;

@end
